package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SetMealDao {
    public void add(Setmeal setmeal);
    public void setSetMealIdAndCheckGroupIds(@Param("setmealId") Integer setmealId,@Param("checkGroupIds") Integer[] checkGroupIds);
    public Page<Setmeal> selectByCondition(String queryString);
    public Setmeal findById(Integer id);
    public List<Integer> findCheckGroupIdsBySetmealId(Integer id);
    public void edit(Setmeal setmeal);
    public void deleteAssocication(Integer id);
    public String findBysetmealId(Integer id);
    public Integer findCountByOrder(Integer id);
    public void delete(Integer id);
    public List<Setmeal> findAllSetmeal();
    public Setmeal findByIdSetmeal(int id);
    public List<Map<String, Object>> findSetmealCount();
}
